<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        class Hero {
            constructor (name, age) {
                this.name = name
                this.age = age
            }
            skill() {
                console.log('艾卡西亚暴雨')
            }
            get skill() {
                console.log('get..')
                return '艾卡西亚暴雨'
            }
            set skill(value) {
                console.log('set..',value)
                console.log(value)
            }
        }

        let a = new Hero('卡莎', 20)
        // console.log(a)
        // a.skill()
        a.skill
        a.skill = '虚空索敌'
        console.log(a)



    </script>

</body>
</html>